import {createRouter, createWebHashHistory} from 'vue-router'
import {components} from '@/views'


const routes = [{
  path: '/',
  component: () => import('@/views/IndexView'),
  children: [{
    path: '/',
    component: () => import('@/views/Welcome')
  }, ...components]
}]


const router = createRouter({
  history: createWebHashHistory(process.env.BASE_URL),
  routes
})

export default router